package com.learn.ert.controller;

import com.baomidou.mybatisplus.extension.api.R;
import com.learn.ert.base.BaseApiService;
import com.learn.ert.base.BaseResponse;
import com.learn.ert.mapper.ErRolePermissionMapper;
import com.learn.ert.service.ErRolePermissionService;
import com.learn.ert.utils.HttpUtils;
import com.learn.ert.utils.PageUtils;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.Map;


/**
 * 
 *
 * @author sjf
 * @email 2334593702@qq.com
 * @date 2020-08-14 17:47:02
 */
@RestController
@RequestMapping("api/errolepermission")
@Api(tags = "角色权限管理接口")
public class ErRolePermissionController {
    @Autowired
    private ErRolePermissionService erRolePermissionService;
/*

    */
/**
     * 列表
     *//*

    @RequestMapping("/list")
  //  @RequiresPermissions("api:errolepermission:list")
    public R list(@RequestParam Map<String, Object> params){
        PageUtils page = erRolePermissionMapper.queryPage(params);

        return R.ok().put("page", page);
    }


    */
/**
     * 信息
     *//*

    @RequestMapping("/info/{rpId}")
   // @RequiresPermissions("api:errolepermission:info")
    public R info(@PathVariable("rpId") Integer rpId){
		ErRolePermissionEntity erRolePermission = erRolePermissionMapper.selectById(rpId);

        return R.ok().put("erRolePermission", erRolePermission);
    }

    */
/**
     * 保存
     *//*

    @RequestMapping("/save")
   // @RequiresPermissions("api:errolepermission:save")
    public R save(@RequestBody ErRolePermissionEntity erRolePermission){
		erRolePermissionMapper.selectById(erRolePermission);

        return R.ok();
    }

    */
/**
     * 修改
     *//*

    @RequestMapping("/update")
    //@RequiresPermissions("api:errolepermission:update")
    public R update(@RequestBody ErRolePermissionEntity erRolePermission){
		erRolePermissionMapper.updateById(erRolePermission);

        return R.ok();
    }

    */
/**
     * 删除
     *//*

//    @RequestMapping("/delete")
//    //@RequiresPermissions("api:errolepermission:delete")
//    public R delete(@RequestBody Integer[] rpIds){
//		erRolePermissionMapper.removeByIds(Arrays.asList(rpIds));
//
//        return R.ok();
//    }
*/

}
